/**
 * $Id: TestEngineerTest.java 81 2012-12-13 16:34:51Z Denis.Skalsky@gmail.com $
 */
package com.globallogic.skalskyy.javabasic.valstaff;

import static org.junit.Assert.*;

import org.junit.Test;

public class TestEngineerTest extends StaffTestFixture{
	
	@Test
	public void testGetToString() {		
		assertEquals("Nastya Logvinova, QA lead engineer", this.NastyaLogvinova.toString());
	}
	
	@Test
	public void testEqualsOneself() {
		assertEquals(true, this.NastyaLogvinova.equals(this.NastyaLogvinova)); 
	}

	@Test
	public void testEqualsDifferentClass() {
		assertEquals(false,this.NastyaLogvinova.equals(new Object()));
	}
	
	@Test
	public void testEqualsTester() {
		TestEngineer tester = new TestEngineer();
		tester.setFirstName("Nastya");
		tester.setSecondName("Logvinova");
		tester.setPosition("QA lead engineer");
		tester.setDateOfBirth("1 May");
		tester.setType("automation");
		
		assertEquals(true, this.NastyaLogvinova.equals(tester));
	}
	
	@Test
	public void testEqualsTesterWithDifferentType() {
		TestEngineer tester = new TestEngineer();
		tester.setFirstName("Nastya");
		tester.setSecondName("Logvinova");
		tester.setPosition("QA lead engineer");
		tester.setDateOfBirth("1 May");
		tester.setType("manual");
		
		assertEquals(false, this.NastyaLogvinova.equals(tester));
	}
}